import { createStore } from 'vuex'
import persistedState from 'vuex-persistedstate'

export default createStore({
  plugins: [
    persistedState({ storage: window.sessionStorage })
  ],
  state: {
    user: {}
  },
  mutations: {
    saveUser(state, userData){
      state.user = userData
    }
  },
  actions: {
  },
  modules: {
  }
})
